﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/include/context.jsp" %>
<form action="${ctx}/system/setuphouse/save" method="post" id="updateForm" style="margin: 0px;"  onSubmit="return updateSetuphouse();">
			
	<input type="hidden" name="warehouse.id" value="${warehouse.id}">
	<input  type="hidden" id="currPageId" name="currPageId" />
	
	<table cellspacing="0" cellpadding="0" class="form-grid">
		<tbody>
			<tr>
				
				<td style="text-align: right; padding-right: 3px; width: 20%;">仓储编码：</td>
				<td colspan="3">
					<input type="text" name="warehouse.code" size="35" value="${warehouse.code}"/>
				</td>
			</tr>
			<tr>
				
				<td style="text-align: right; padding-right: 3px; width: 20%;">仓储名称：</td>
				<td colspan="3">
					<input type="text" name="warehouse.name" size="35" value="${warehouse.name}"/>
				</td>
			</tr>
			<tr>
				<td style="text-align: right; padding-right: 3px; width: 20%;">负&nbsp;责&nbsp;人：</td>
				<td><input type="text" name="warehouse.person" size="15" value="${warehouse.person}"/></td>
				<td style="text-align: right; padding-right: 3px; width: 20%;">联系电话：</td>
				<td><input type="text" name="warehouse.telephone" size="15" value="${warehouse.telephone}"/></td>
			</tr>
			<tr>
				<td style="text-align: right; padding-right: 3px; width: 20%;">email：</td>
				<td colspan="3"><input type="text" name="warehouse.email" size="50" value="${warehouse.email}"/></td>
			</tr>
			<tr>
				<td style="text-align: right; padding-right: 3px; width: 20%;">
					所在区域：
				</td>
				<td>
					<select name="warehouse.region.id">
						<c:forEach var="region" items="${regions}" varStatus="status">
							<c:if test="${!empty warehouse.region && region.id==warehouse.region.id}">
								<option selected="selected" value="${region.id}"  >${region.number} - ${region.name }</option>
							</c:if>
							
							<c:if test="${empty warehouse.region || warehouse.region.id !=region.id}">
								<option value="${region.id}"  >${region.number} - ${region.name }</option>
							</c:if>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<td style="text-align: right; padding-right: 3px; width: 20%;">仓储地址：</td>
				<td colspan="3"><input type="text" name="warehouse.address" size="50" value="${warehouse.address}"/></td>
			</tr>
			<tr>
				<td style="text-align: right; padding-right: 3px; width: 20%;">备&nbsp;&nbsp;&nbsp;&nbsp;注：</td>
				<td colspan="3"><input type="text" name="warehouse.description" size="50" value="${warehouse.description}"/></td>
			</tr>
		</tbody>
	</table>
			
	<div class="window_footer"><input type="submit" value="确定"></div>
</form>

<%@ include file="/include/script.jsp" %>